﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static _01_Tower4._0.GameFrame.Game;
using static _01_Tower4._0.CharacterBase.Hero;
using _01_Tower4._0.GameFrame;
using _01_Tower4._0.Tool;
using _01_Tower4._0.Scene;
using _01_Tower4._0.GameFrame.System;

namespace _01_Tower4._0.CharacterBase
{
    internal class Enemy : Character
    {
        protected long currentTime, lastTime;
        protected Pos backup;
        protected SceneMap1 scene;
        ToolMenu toolMenu;

        public Enemy(string name, int hp, int maxHp, int mp, int maxMp, int atk, int def, Pos pos, Map map , string display,ConsoleColor color, SceneMap1 scene) 
            : base(name, hp, maxHp, mp, maxMp, atk, def, pos, map, display, color)
        {
            this.scene = scene;
        }

        public override void OnDead()
        {
            base.OnDead();
            // 删除逻辑
            //map.SetType(Pos, Map.Type.MonSlime);
            
            scene.slime.Remove(this);
            scene.goblin.Remove(this);
            Utility.MyPrint("  ", Pos.x + map.offsetX, Pos.y + map.offsetY);
        }
    }
}
